<?php

$config = array(
	'signup' => array(
		array(
			'field' => 'username',
			'label' => '用户名',
			'rules' => 'required',
		),
		array(
			'field' => 'password',
			'label' => '密码',
			'rules' => 'required',
		),
	),
	'register' => array(
		array(
			'field' => 'username',
			'label' => '用户名',
			'rules' => 'required',
		),
		array(
			'field' => 'password',
			'label' => '密码',
			'rules' => 'required',
		),
		array(
			'field' => 'repassword',
			'label' => '重复密码',
			'rules' => 'required|matches[password]'
		),
		array(
			'field' => 'email',
			'label' => '邮箱',
			'rules' => 'required|valid_email'
		)
	),
);
